home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 October: Mac OS SDK / Dev.CD Oct 97 SDK1.toast / Development Kits (Disc 1) / QuickDraw GX / Programming Stuff / Sample Code / Printing Samples / Printer Drivers… / ImageWriterLQ (alt. rdip) / UniversalMessageIntf.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-03-20  |  2.5 KB  |  72 lines  |  [TEXT/MPS ]

  1. /* ------------------------------------------------------------------------------
  2. FILENAME
  3.     UniversalMessageIntf.h
  4.  
  5. DESCRIPTION
  6.     This module contains the constant and type declarations for the 
  7.     UniversalMessageIntf.c file.  That file contains the routines which override
  8.     the universal imaging messages that are supported by the ImageWriter LQ
  9.     driver.
  10.     
  11. COPYRIGHT
  12.      Copyright Apple Computer, Inc. 1992-1994
  13.      All rights reserved. 
  14.  
  15.     12/20/93        dmh    Sync'd with the shipping 1.0b3 GX driver.
  16.      8/28/94        dmh    Sync'd with the shipping 1.0.1 GX driver.
  17.  
  18. -------------------------------------------------------------------------------- */
  19.  
  20. #ifndef __UNIVERSALMESSAGEINTF__
  21. #define __UNIVERSALMESSAGEINTF__
  22.  
  23. /*********************************************************************************
  24.  *                                            CONSTANTS                                                *
  25.  *********************************************************************************/
  26.  
  27. // Constants for accessing config file information
  28.  
  29. #define    kIWLQConfigType                'ICFG'
  30. #define    kIWLQConfigID                    128            
  31.     
  32.  
  33. /*********************************************************************************
  34.  *                                             TYPES                                                     *
  35.  *********************************************************************************/
  36.  
  37. // SpecGlobalsRec - Structure containing the LaserWriterSC's global variables 
  38.  
  39. typedef struct
  40. {
  41.     gxRasterImageDataHdl    hImageData;            // image data for a page 
  42.     short                        leftMargin;            //    pixel offset of the left margin for the current page
  43.     PicHandle                sheetFeederPICT;    //    Handle to the sheetfeeder picture to display in the paper
  44.                                                         // configuration dialog
  45.     long                        pagePrinting;        //    Number of the page that's currently being printed
  46.     Handle                    draftTable;            //    Handle to table of character info. used in draft printing
  47. }    SpecGlobalsRec,     
  48.     *SpecGlobalsPtr,      
  49.     **SpecGlobalsHdl;
  50.     
  51.  
  52. // IWLQConfigInfo - Configuration info stored in the desktop printer file
  53.  
  54. typedef struct
  55. {
  56.     Boolean        hasColorRibbon;    //    true if printer has color ribbon; false otherwise
  57.     char            numTrays;            //    number of sheet feeder trays attached to the printer; zero if no sheet feeder
  58. }    IWLQConfigInfo,
  59.     *IWLQConfigInfoPtr,
  60.     **IWLQConfigInfoHdl;
  61.  
  62.  
  63. /*********************************************************************************
  64.  *                                            DEFINES                                                    *
  65.  *********************************************************************************/
  66.  
  67. #define kSpecGlobalsRecLen     sizeof(SpecGlobalsRec)
  68.  
  69. // F2S - for converting fixed numbers to shorts 
  70. #define F2S(a) FixedToInt(a)
  71.  
  72. #endif __UNIVERSALMESSAGEINTF__